﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site2.master" AutoEventWireup="true" CodeFile="CatalogoProspectos.aspx.cs" Inherits="CatalogoProspectos" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" Runat="Server">
    <form id="empleado" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager>

        <ul class="tabs">
            <li><a href="#tab1">Prospectos</a></li>
            <li><a href="#tab2">Contactos</a></li>
            <li><a href="#tab3">Clientes</a></li>
            <li><a href="#tab4">Ubicaciones</a></li>
            <li><a href="#tab5">Fiscales</a></li>
        </ul>

     <div class="tab_container">
         <div id="tab1" class="tab_content">
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
            <table>
                <tr>
                    <td>

                    <asp:GridView ID="grdDatos" runat="server"
                            Width="100%" AllowPaging="True" AllowSorting="True" 
                            DataKeyNames="ProspectosId" AutoGenerateColumns="False"
                            GridLines="None" 
                            onselectedindexchanged="grdDatos_SelectedIndexChanged1" CellPadding="4" 
                            ForeColor="#333333" PageSize="25" 
                            onpageindexchanging="grdDatos_PageIndexChanging">
                        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                      <Columns>   
                            <asp:CommandField  ShowEditButton="false"  ShowDeleteButton="false"   
                                ShowSelectButton="true" SelectText="Ver">
                            <ControlStyle Width="25px" Font-Italic="True" />
                            </asp:CommandField>
                            <asp:BoundField 
                             DataField="ProspectosId" 
                             HeaderText=" No. "
                             SortExpression="ProspectosId" 
                              ControlStyle-Width="10px" >
                            <ControlStyle Width="15px" />
                            <HeaderStyle Font-Size="XX-Small" HorizontalAlign="Center" 
                                VerticalAlign="Middle" Wrap="False" />
                            </asp:BoundField>
                            <asp:BoundField 
                             DataField="Codigo" 
                             HeaderText="Codigo"
                             SortExpression="Codigo" 
                             ControlStyle-Width="30px" >
                            <ControlStyle Width="40px" />
                            <HeaderStyle Font-Size="XX-Small" HorizontalAlign="Center" 
                                VerticalAlign="Middle" Wrap="False" />
                            </asp:BoundField>
                            <asp:BoundField 
                             DataField="Nombre_Comercial" 
                             HeaderText="Comercial"
                             SortExpression="Nombre_Comercial" 
                             ControlStyle-Width="30px" >
                            <ControlStyle Width="40px" />
                            <HeaderStyle Font-Size="XX-Small" HorizontalAlign="Center" 
                                VerticalAlign="Middle" Wrap="False" />
                            </asp:BoundField>
                            <asp:BoundField 
                             DataField="Nombre" 
                             HeaderText="Nombre"
                             SortExpression="Nombre" 
                             ControlStyle-Width="30px" >
                            <ControlStyle Width="40px" />
                            <HeaderStyle Font-Size="XX-Small" HorizontalAlign="Center" 
                                VerticalAlign="Middle" Wrap="False" />
                            </asp:BoundField>
                            <asp:BoundField 
                             DataField="Zona" 
                             HeaderText="Zona"
                             SortExpression="Zona" 
                             ControlStyle-Width="30px" >
                            <ControlStyle Width="40px" />
                            <HeaderStyle Font-Size="XX-Small" HorizontalAlign="Center" 
                                VerticalAlign="Middle" Wrap="False" />
                            </asp:BoundField>
                            <asp:BoundField 
                             DataField="Tamano" 
                             HeaderText="Tamano"
                             SortExpression="Tamano" 
                             ControlStyle-Width="30px" >
                            <ControlStyle Width="40px" />
                            <HeaderStyle Font-Size="XX-Small" HorizontalAlign="Center" 
                                VerticalAlign="Middle" Wrap="False" />
                            </asp:BoundField>
                            <asp:BoundField 
                             DataField="SubSector" 
                             HeaderText="SubSector"
                             SortExpression="SubSector" 
                             ControlStyle-Width="30px" >
                            <ControlStyle Width="40px" />
                            <HeaderStyle Font-Size="XX-Small" HorizontalAlign="Center" 
                                VerticalAlign="Middle" Wrap="False" />
                            </asp:BoundField>
                            <asp:BoundField 
                             DataField="Fecha_Alta" 
                             HeaderText="Fecha Alta"
                             SortExpression="Fecha_Alta" 
                             ControlStyle-Width="30px" >
                            <ControlStyle Width="40px" />
                            <HeaderStyle Font-Size="XX-Small" HorizontalAlign="Center" 
                                VerticalAlign="Middle" Wrap="False" />
                            </asp:BoundField>
                       </Columns>
                        <EditRowStyle BackColor="#999999" />
                        <FooterStyle BackColor="#5D7B9D" ForeColor="White" Font-Bold="True" />
                        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                        <SortedAscendingCellStyle BackColor="#E9E7E2" />
                        <SortedAscendingHeaderStyle BackColor="#506C8C" />
                        <SortedDescendingCellStyle BackColor="#FFFDF8" />
                        <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                    </asp:GridView>
                      
                    </td>
                </tr>
                <tr>                    
                    <td> 
                        <asp:LinkButton ID="lnkNuevoProspecto" runat="server" onclick="lnkNuevoProspecto_Click" 
                            >Nuevo</asp:LinkButton>  | 
                        <asp:LinkButton ID="lnkEliminarProspecto" runat="server" onclick="lnkEliminarProspecto_Click" 
                            >Eliminar</asp:LinkButton>   | 
                        <asp:LinkButton ID="lnkEditarProspecto" runat="server" onclick="lnkEditarProspecto_Click" 
                            >Editar</asp:LinkButton></td>

                </tr>
                <tr>
                    <td>

                          <table width="100%" style="width: 600px">

                            <tr class="td2">
                              <td align="right"><label for="corg">Codigo:</label></td>
                              <td colspan="3" align="left">
                                  <asp:TextBox ID="txtCodigo" runat="server" Height="23px" Width="348px" ReadOnly="True"></asp:TextBox>
                                </td>
                            </tr>
                            <tr class="td1">
                              <td align="right"><label for="corg">Nombre Comercial:</label></td>
                              <td align="left">
                                  <asp:TextBox ID="txtNombreComercial" runat="server" ReadOnly="True"></asp:TextBox>
                                </td>
                              <td align="right">Nombre</td>
                              <td align="left">
                                  <asp:TextBox ID="txtNombre" runat="server" ReadOnly="True"></asp:TextBox>
                                </td>
                            </tr>
                            <tr class="td2">
                              <td align="right"><label for="corg">Conmutador:</label></td>
                              <td align="left" >
                                  <asp:TextBox ID="txtConmutador" runat="server" ReadOnly="True"></asp:TextBox>
                                </td>
                              <td align="right">Pagina Web:</td>
                              <td align="left">
                                  <asp:TextBox ID="txtPaginaWeb" runat="server" ReadOnly="True"></asp:TextBox>
                                </td>
                            </tr>
                            <tr class="td1">
                              <td align="right"><label for="corg" ReadOnly="True">Calle:</label></td>
                              <td align="left">
                                  <asp:TextBox ID="txtCalle" runat="server" ReadOnly="True"></asp:TextBox>
                                </td>
                              <td align="right">Colonia</td>
                              <td align="left">
                                  <asp:TextBox ID="txtColonia" runat="server" ReadOnly="True"></asp:TextBox>
                                </td>
                            </tr>
                            <tr class="td2">
                              <td align="right"><label for="curl">Cp:</label></td>
                              <td colspan="1" align="left">
                                  <asp:TextBox ID="txtCP" runat="server" ReadOnly="True"></asp:TextBox>
                                </td>
                              <td align="right"><label for="curl">Email:</label></td>
                              <td colspan="3" align="left">
                                  <asp:TextBox ID="txtEmail" runat="server" ReadOnly="True"></asp:TextBox>
                                </td>
                            </tr>
                            <tr class="td1">
                                <td align="right"><label for="curl">Comentarios:</label></td>
                                  <td colspan="3" align="left">
                                  <asp:TextBox ID="txtComentarios" runat="server" ReadOnly="True"></asp:TextBox>
                                </td>
                            </tr>
                            <tr class="td1">
                              <td align="right"><label for="curl">Ciudad:</label></td>
                              <td align="left" >
                                  <asp:DropDownList ID="ddCiudad" runat="server">
                                  </asp:DropDownList>
                                </td>
                              <td align="right"><label for="curl">Municipio:</label></td>
                              <td align="left">
                                  <asp:DropDownList ID="ddMunicipio" runat="server">
                                  </asp:DropDownList>
                                </td>
                            </tr>

                            <tr class="td2">
                              <td align="right"><label for="curl">Estado:</label></td>
                              <td align="left" >
                                  <asp:DropDownList ID="ddEstado" runat="server">
                                  </asp:DropDownList>
                                </td>                            
                            </tr>
                            <tr class="td1">
                              <td align="right"><label for="curl">SubSector:</label></td>
                              <td align="left" >
                                  <asp:DropDownList ID="ddSubSector" runat="server">
                                  </asp:DropDownList>
                                </td>                            
                              <td align="right"><label for="curl">Tamaño:</label></td>
                              <td align="left" >
                                  <asp:DropDownList ID="ddTamaño" runat="server">
                                  </asp:DropDownList>
                                </td> 
                            </tr>
                            <tr class="td1">
                              <td align="right"><label for="curl">Zona:</label></td>
                              <td align="left" >
                                  <asp:DropDownList ID="ddZona" runat="server">
                                  </asp:DropDownList>
                                </td>                             
                            </tr>
                            <tr>
                                <td>
                                    <asp:LinkButton ID="lnkGuardarProspecto" runat="server" onclick="lnkGuardarProspecto_Click" 
                                        >Guardar</asp:LinkButton>
                                </td>
                            </tr>
                          </table>

                    </td>
                </tr>
            </table>
            </ContentTemplate>
            </asp:UpdatePanel>  
         </div>
     </div>

     <div class="tab_container">
         <div id="tab2" class="tab_content">
            <asp:UpdatePanel ID="UpdatePanel2" runat="server">
            <ContentTemplate>
            <table>
                <tr>
                    <td>

                    <asp:GridView ID="grdDatos2" runat="server"
                            Width="100%" AllowPaging="True" AllowSorting="True" 
                            DataKeyNames="ContactosId" AutoGenerateColumns="False"
                            GridLines="None" 
                            onselectedindexchanged="grdDatos2_SelectedIndexChanged1" CellPadding="4" 
                            ForeColor="#333333" PageSize="25" 
                            onpageindexchanging="grdDatos2_PageIndexChanging">
                        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                      <Columns>   
                            <asp:CommandField  ShowEditButton="false"  ShowDeleteButton="false"   
                                ShowSelectButton="true" SelectText="Ver">
                            <ControlStyle Width="25px" Font-Italic="True" />
                            </asp:CommandField>
                            <asp:BoundField 
                             DataField="ContactosId" 
                             HeaderText=" No. "
                             SortExpression="ContactosId" 
                              ControlStyle-Width="10px" >
                            <ControlStyle Width="15px" />
                            <HeaderStyle Font-Size="XX-Small" HorizontalAlign="Center" 
                                VerticalAlign="Middle" Wrap="False" />
                            </asp:BoundField>
                            <asp:BoundField 
                             DataField="Nombre" 
                             HeaderText="Nombre"
                             SortExpression="Nombre" 
                             ControlStyle-Width="30px" >
                            <ControlStyle Width="40px" />
                            <HeaderStyle Font-Size="XX-Small" HorizontalAlign="Center" 
                                VerticalAlign="Middle" Wrap="False" />
                            </asp:BoundField>
                            <asp:BoundField 
                             DataField="Telefono" 
                             HeaderText="Telefono"
                             SortExpression="Telefono" 
                             ControlStyle-Width="30px" >
                            <ControlStyle Width="40px" />
                            <HeaderStyle Font-Size="XX-Small" HorizontalAlign="Center" 
                                VerticalAlign="Middle" Wrap="False" />
                            </asp:BoundField>
                            <asp:BoundField 
                             DataField="Extencion" 
                             HeaderText="Extension"
                             SortExpression="Extencion" 
                             ControlStyle-Width="30px" >
                            <ControlStyle Width="40px" />
                            <HeaderStyle Font-Size="XX-Small" HorizontalAlign="Center" 
                                VerticalAlign="Middle" Wrap="False" />
                            </asp:BoundField>
                            <asp:BoundField 
                             DataField="Correo" 
                             HeaderText="Correo"
                             SortExpression="Correo" 
                             ControlStyle-Width="30px" >
                            <ControlStyle Width="40px" />
                            <HeaderStyle Font-Size="XX-Small" HorizontalAlign="Center" 
                                VerticalAlign="Middle" Wrap="False" />
                            </asp:BoundField>

                       </Columns>
                        <EditRowStyle BackColor="#999999" />
                        <FooterStyle BackColor="#5D7B9D" ForeColor="White" Font-Bold="True" />
                        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                        <SortedAscendingCellStyle BackColor="#E9E7E2" />
                        <SortedAscendingHeaderStyle BackColor="#506C8C" />
                        <SortedDescendingCellStyle BackColor="#FFFDF8" />
                        <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                    </asp:GridView>
                      
                    </td>
                </tr>
                <tr>                    
                    <td> 
                        <asp:LinkButton ID="lnkNuevoContacto" runat="server" onclick="lnkNuevoContacto_Click" 
                            >Nuevo</asp:LinkButton>  | 
                        <asp:LinkButton ID="lnkEliminaContacto" runat="server" onclick="lnkEliminaContacto_Click" 
                            >Eliminar</asp:LinkButton>   | 
                        <asp:LinkButton ID="lnkEditarContacto" runat="server" onclick="lnkEditarContacto_Click" 
                            >Editar</asp:LinkButton></td>

                </tr>
                <tr>
                    <td>

                          <table width="100%" style="width: 600px">

                            <tr class="td2">
                              <td align="right"><label for="corg">Nombre:</label></td>
                              <td colspan="3" align="left">
                                  <asp:TextBox ID="txtNombreContacto" runat="server" Height="23px" Width="348px" ReadOnly="True"></asp:TextBox>
                                </td>
                            </tr>
                            <tr class="td1">
                              <td align="right"><label for="corg">Email:</label></td>
                              <td align="left">
                                  <asp:TextBox ID="txtEmailContacto" runat="server" ReadOnly="True"></asp:TextBox>
                                </td>
                              <td align="right">Telefono</td>
                              <td align="left">
                                  <asp:TextBox ID="txtTelefonoContacto" runat="server" ReadOnly="True"></asp:TextBox>
                                </td>
                            </tr>
                            <tr class="td2">
                              <td align="right"><label for="corg">Extensión:</label></td>
                              <td align="left" >
                                  <asp:TextBox ID="txtExtensionContacto" runat="server" ReadOnly="True"></asp:TextBox>
                                </td>
                              <td align="right">Puesto:</td>
                              <td align="left">
                                  <asp:TextBox ID="txtPuestoContacto" runat="server" ReadOnly="True"></asp:TextBox>
                                </td>
                            </tr>

                            <tr>
                                <td>
                                    <asp:LinkButton ID="lnkGuardarContacto" runat="server" onclick="lnkGuardarContacto_Click" 
                                        >Guardar</asp:LinkButton>
                                </td>
                            </tr>
                          </table>

                    </td>
                </tr>
            </table>
            </ContentTemplate>
            </asp:UpdatePanel>  
         </div>
     </div>

          <div class="tab_container">
         <div id="tab3" class="tab_content">
            <asp:UpdatePanel ID="UpdatePanel3" runat="server">
            <ContentTemplate>
            <table>
                <tr>
                    <td>

                    <asp:GridView ID="grdDatos3" runat="server"
                            Width="100%" AllowPaging="True" AllowSorting="True" 
                            DataKeyNames="ClientesId" AutoGenerateColumns="False"
                            GridLines="None" 
                            onselectedindexchanged="grdDatos3_SelectedIndexChanged1" CellPadding="4" 
                            ForeColor="#333333" PageSize="25" 
                            onpageindexchanging="grdDatos3_PageIndexChanging">
                        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                      <Columns>   
                            <asp:CommandField  ShowEditButton="false"  ShowDeleteButton="false"   
                                ShowSelectButton="true" SelectText="Ver">
                            <ControlStyle Width="25px" Font-Italic="True" />
                            </asp:CommandField>
                            <asp:BoundField 
                             DataField="ClientesId" 
                             HeaderText=" No. "
                             SortExpression="ClientesId" 
                              ControlStyle-Width="10px" >
                            <ControlStyle Width="15px" />
                            <HeaderStyle Font-Size="XX-Small" HorizontalAlign="Center" 
                                VerticalAlign="Middle" Wrap="False" />
                            </asp:BoundField>
                            <asp:BoundField 
                             DataField="RFC" 
                             HeaderText="RFC"
                             SortExpression="RFC" 
                             ControlStyle-Width="30px" >
                            <ControlStyle Width="40px" />
                            <HeaderStyle Font-Size="XX-Small" HorizontalAlign="Center" 
                                VerticalAlign="Middle" Wrap="False" />
                            </asp:BoundField>
                       </Columns>
                        <EditRowStyle BackColor="#999999" />
                        <FooterStyle BackColor="#5D7B9D" ForeColor="White" Font-Bold="True" />
                        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                        <SortedAscendingCellStyle BackColor="#E9E7E2" />
                        <SortedAscendingHeaderStyle BackColor="#506C8C" />
                        <SortedDescendingCellStyle BackColor="#FFFDF8" />
                        <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                    </asp:GridView>
                      
                    </td>
                </tr>
                <tr>                    
                    <td> 
                        <asp:LinkButton ID="lnkNuevoCliente" runat="server" onclick="lnkNuevoCliente_Click" 
                            >Nuevo</asp:LinkButton>  | 
                        <asp:LinkButton ID="lnkEliminarCliente" runat="server" onclick="lnkEliminarCliente_Click" 
                            >Eliminar</asp:LinkButton>   | 
                        <asp:LinkButton ID="lnkEditarCliente" runat="server" onclick="lnkEditarCliente_Click" 
                            >Editar</asp:LinkButton></td>

                </tr>
                <tr>
                    <td>

                          <table width="100%" style="width: 600px">

                            <tr class="td2">
                              <td align="right"><label for="corg">RFC:</label></td>
                              <td colspan="3" align="left">
                                  <asp:TextBox ID="txtRFC" runat="server" Height="23px" Width="348px" ReadOnly="True"></asp:TextBox>
                                </td>
                            </tr>
                            <tr class="td1">
                              <td align="right"><label for="corg">Fecha Recibo:</label></td>
                              <td align="left">
                                  <asp:TextBox ID="txtFechaRecibo" runat="server" ReadOnly="True"></asp:TextBox>
                                </td>
                              <td align="right">Fecha Pago:</td>
                              <td align="left">
                                  <asp:TextBox ID="txtFechaPago" runat="server" ReadOnly="True"></asp:TextBox>
                                </td>
                            </tr>
                            <tr class="td2">
                              <td align="right"><label for="corg">Condiciones Pago:</label></td>
                              <td align="left" >
                                  <asp:TextBox ID="txtCondicionesPago" runat="server" ReadOnly="True"></asp:TextBox>
                                </td>
                              <td align="right">Procedimiento Pago:</td>
                              <td align="left">
                                  <asp:TextBox ID="txtProcedimientoPago" runat="server" ReadOnly="True"></asp:TextBox>
                                </td>
                            </tr>

                            <tr>
                                <td>
                                    <asp:LinkButton ID="lnkGuardarCliente" runat="server" onclick="lnkGuardarCliente_Click" 
                                        >Guardar</asp:LinkButton>
                                </td>
                            </tr>
                          </table>

                    </td>
                </tr>
            </table>
            </ContentTemplate>
            </asp:UpdatePanel>  
         </div>
     </div>

          <div class="tab_container">
         <div id="tab4" class="tab_content">
            <asp:UpdatePanel ID="UpdatePanel4" runat="server">
            <ContentTemplate>
            <table>
                <tr>
                    <td>

                    <asp:GridView ID="grdDatos4" runat="server"
                            Width="100%" AllowPaging="True" AllowSorting="True" 
                            DataKeyNames="UbicacionesId" AutoGenerateColumns="False"
                            GridLines="None" 
                            onselectedindexchanged="grdDatos4_SelectedIndexChanged1" CellPadding="4" 
                            ForeColor="#333333" PageSize="25" 
                            onpageindexchanging="grdDatos4_PageIndexChanging">
                        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                      <Columns>   
                            <asp:CommandField  ShowEditButton="false"  ShowDeleteButton="false"   
                                ShowSelectButton="true" SelectText="Ver">
                            <ControlStyle Width="25px" Font-Italic="True" />
                            </asp:CommandField>
                            <asp:BoundField 
                             DataField="UbicacionesId" 
                             HeaderText=" No. "
                             SortExpression="UbicacionesId" 
                              ControlStyle-Width="10px" >
                            <ControlStyle Width="15px" />
                            <HeaderStyle Font-Size="XX-Small" HorizontalAlign="Center" 
                                VerticalAlign="Middle" Wrap="False" />
                            </asp:BoundField>
                            <asp:BoundField 
                             DataField="Calle" 
                             HeaderText="Calle"
                             SortExpression="Calle" 
                             ControlStyle-Width="30px" >
                            <ControlStyle Width="40px" />
                            <HeaderStyle Font-Size="XX-Small" HorizontalAlign="Center" 
                                VerticalAlign="Middle" Wrap="False" />
                            </asp:BoundField>
                       </Columns>
                        <EditRowStyle BackColor="#999999" />
                        <FooterStyle BackColor="#5D7B9D" ForeColor="White" Font-Bold="True" />
                        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                        <SortedAscendingCellStyle BackColor="#E9E7E2" />
                        <SortedAscendingHeaderStyle BackColor="#506C8C" />
                        <SortedDescendingCellStyle BackColor="#FFFDF8" />
                        <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                    </asp:GridView>
                      
                    </td>
                </tr>
                <tr>                    
                    <td> 
                        <asp:LinkButton ID="lnkNuevoUbicacion" runat="server" onclick="lnkNuevoUbicacion_Click" 
                            >Nuevo</asp:LinkButton>  | 
                        <asp:LinkButton ID="lnkEliminarUbicacion" runat="server" onclick="lnkEliminarUbicacion_Click" 
                            >Eliminar</asp:LinkButton>   | 
                        <asp:LinkButton ID="lnkEditarUbicacion" runat="server" onclick="lnkEditarUbicacion_Click" 
                            >Editar</asp:LinkButton></td>

                </tr>
                <tr>
                    <td>

                          <table width="100%" style="width: 600px">

                            <tr class="td2">
                              <td align="right"><label for="corg">Calle:</label></td>
                              <td colspan="3" align="left">
                                  <asp:TextBox ID="txtCalleU" runat="server" Height="23px" Width="348px" ReadOnly="True"></asp:TextBox>
                                </td>
                            </tr>
                            <tr class="td1">
                              <td align="right"><label for="corg">Colonia:</label></td>
                              <td align="left">
                                  <asp:TextBox ID="txtColoniaU" runat="server" ReadOnly="True"></asp:TextBox>
                                </td>
                              <td align="right">Cp:</td>
                              <td align="left">
                                  <asp:TextBox ID="txtCpU" runat="server" ReadOnly="True"></asp:TextBox>
                                </td>
                            </tr>
                            <tr class="td2">
                              <td align="right"><label for="curl">Ciudad:</label></td>
                              <td align="left" >
                                  <asp:DropDownList ID="ddCiudadU" runat="server">
                                  </asp:DropDownList>
                                </td>
                              <td align="right"><label for="curl">Municipio:</label></td>
                              <td align="left">
                                  <asp:DropDownList ID="ddMunicipioU" runat="server">
                                  </asp:DropDownList>
                                </td>
                            </tr>

                            <tr class="td1">
                              <td align="right"><label for="curl">Estado:</label></td>
                              <td align="left" >
                                  <asp:DropDownList ID="ddEstadoU" runat="server">
                                  </asp:DropDownList>
                                </td>                            
                            </tr>


                            <tr>
                                <td>
                                    <asp:LinkButton ID="lnkGuardarUbicacion" runat="server" onclick="lnkGuardarUbicacion_Click" 
                                        >Guardar</asp:LinkButton>
                                </td>
                            </tr>
                          </table>

                    </td>
                </tr>
            </table>
            </ContentTemplate>
            </asp:UpdatePanel>  
         </div>
     </div>

          <div class="tab_container">
         <div id="tab5" class="tab_content">
            <asp:UpdatePanel ID="UpdatePanel5" runat="server">
            <ContentTemplate>
            <table>
                <tr>
                    <td>

                    <asp:GridView ID="grdDatos5" runat="server"
                            Width="100%" AllowPaging="True" AllowSorting="True" 
                            DataKeyNames="FiscalesId" AutoGenerateColumns="False"
                            GridLines="None" 
                            onselectedindexchanged="grdDatos5_SelectedIndexChanged1" CellPadding="4" 
                            ForeColor="#333333" PageSize="25" 
                            onpageindexchanging="grdDatos5_PageIndexChanging">
                        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                      <Columns>   
                            <asp:CommandField  ShowEditButton="false"  ShowDeleteButton="false"   
                                ShowSelectButton="true" SelectText="Ver">
                            <ControlStyle Width="25px" Font-Italic="True" />
                            </asp:CommandField>
                            <asp:BoundField 
                             DataField="FiscalesId" 
                             HeaderText=" No. "
                             SortExpression="FiscalesId" 
                              ControlStyle-Width="10px" >
                            <ControlStyle Width="15px" />
                            <HeaderStyle Font-Size="XX-Small" HorizontalAlign="Center" 
                                VerticalAlign="Middle" Wrap="False" />
                            </asp:BoundField>
                            <asp:BoundField 
                             DataField="RFC" 
                             HeaderText="RFC"
                             SortExpression="RFC" 
                             ControlStyle-Width="30px" >
                            <ControlStyle Width="40px" />
                            <HeaderStyle Font-Size="XX-Small" HorizontalAlign="Center" 
                                VerticalAlign="Middle" Wrap="False" />
                            </asp:BoundField>
                       </Columns>
                        <EditRowStyle BackColor="#999999" />
                        <FooterStyle BackColor="#5D7B9D" ForeColor="White" Font-Bold="True" />
                        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                        <SortedAscendingCellStyle BackColor="#E9E7E2" />
                        <SortedAscendingHeaderStyle BackColor="#506C8C" />
                        <SortedDescendingCellStyle BackColor="#FFFDF8" />
                        <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                    </asp:GridView>
                      
                    </td>
                </tr>
                <tr>                    
                    <td> 
                        <asp:LinkButton ID="lnkNuevoFiscal" runat="server" onclick="lnkNuevoFiscal_Click" 
                            >Nuevo</asp:LinkButton>  | 
                        <asp:LinkButton ID="lnkEliminarFiscal" runat="server" onclick="lnkEliminarFiscal_Click" 
                            >Eliminar</asp:LinkButton>   | 
                        <asp:LinkButton ID="lnkEditarFiscal" runat="server" onclick="lnkEditarFiscal_Click" 
                            >Editar</asp:LinkButton></td>

                </tr>
                <tr>
                    <td>

                          <table width="100%" style="width: 600px">

                            <tr class="td2">
                              <td align="right"><label for="corg">RFC:</label></td>
                              <td colspan="3" align="left">
                                  <asp:TextBox ID="txtRFCFiscal" runat="server" Height="23px" Width="348px" ReadOnly="True"></asp:TextBox>
                                </td>
                            </tr>
                            <tr class="td1">
                              <td align="right"><label for="corg">Calle:</label></td>
                              <td align="left">
                                  <asp:TextBox ID="txtCalleFiscal" runat="server" ReadOnly="True"></asp:TextBox>
                                </td>
                              <td align="right">Colonia:</td>
                              <td align="left">
                                  <asp:TextBox ID="txtColoniaFiscal" runat="server" ReadOnly="True"></asp:TextBox>
                                </td>
                            </tr>
                            <tr class="td2">
                              <td align="right"><label for="corg">Cp:</label></td>
                              <td align="left">
                                  <asp:TextBox ID="txtCpFiscal" runat="server" ReadOnly="True"></asp:TextBox>
                                </td>
                            </tr>

                            <tr class="td1">
                              <td align="right"><label for="curl">Ciudad:</label></td>
                              <td align="left" >
                                  <asp:DropDownList ID="ddCiudadF" runat="server">
                                  </asp:DropDownList>
                                </td>
                              <td align="right"><label for="curl">Municipio:</label></td>
                              <td align="left">
                                  <asp:DropDownList ID="ddMunicipioF" runat="server">
                                  </asp:DropDownList>
                                </td>
                            </tr>

                            <tr class="td2">
                              <td align="right"><label for="curl">Estado:</label></td>
                              <td align="left" >
                                  <asp:DropDownList ID="ddEstadoF" runat="server">
                                  </asp:DropDownList>
                                </td>                            
                            </tr>


                            <tr>
                                <td>
                                    <asp:LinkButton ID="lnkGuardarFiscal" runat="server" onclick="lnkGuardarFiscal_Click" 
                                        >Guardar</asp:LinkButton>
                                </td>
                            </tr>
                          </table>

                    </td>
                </tr>
            </table>
            </ContentTemplate>
            </asp:UpdatePanel>  
         </div>
     </div>

    </form>
</asp:Content>

